class LocationNumbModel01 {
  int code;
  String msg;
  String time;
  List<ItemModel> data;

  LocationNumbModel01({this.code, this.msg, this.time, this.data});

  LocationNumbModel01.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    msg = json['msg'];
    time = json['time'];
    if (json['data'] != null) {
      data = new List<ItemModel>();
      json['data'].forEach((v) {
        data.add(new ItemModel.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    data['time'] = this.time;
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class ItemModel {
  int id;
  String name;
  int areaCode;

  ItemModel({this.id, this.name, this.areaCode});

  ItemModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    areaCode = json['area_code'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['area_code'] = this.areaCode;
    return data;
  }
}
